﻿using Microsoft.AspNetCore.Mvc;
using Abp.AspNetCore.Mvc.Authorization;
using DualControl.Controllers;
using DualControl.Quartz;
using DualControl.CompanyInfos;
using Abp.Domain.Uow;
using DualControl.CompanyInfos.Dtos;
using System.Threading.Tasks;

namespace DualControl.Web.Controllers
{
    [AbpMvcAuthorize]
    public class HomeController : DualControlControllerBase
    {
      
        private readonly ICompanyInfoAppService _companyInfoAppService;

      

        public HomeController(
            //IJobManager jobManager,         
            CompanyInfoAppService companyInfoAppService
            )
        {
            //_jobManager = jobManager;
            _companyInfoAppService = companyInfoAppService;
        
        }
        public async Task<ActionResult> Index()
        {
            // _jobManager.ScheduleGenerateCheckTask();
          CompanyInfoListDto companyinfo =await _companyInfoAppService.GetCompanyInfoAsync();
            return View(companyinfo);
        }
	}
}
